-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core/tracker: add missed participation counter #2075
Conversation
@@ -672,8 +672,8 @@ func newParticipationReporter(peers []p2p.Peer) func(context.Context, core.Duty, | |||
// Initialise participation metrics to 0 to avoid non-existent metrics issue on startup. | |||
for _, duty := range core.AllDutyTypes() { | |||
for _, peer := range peers { | |||
participationCounter.WithLabelValues(duty.String(), peer.Name).Add(0) | |||
participationGauge.WithLabelValues(duty.String(), peer.Name).Set(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dB2510 setting participationGauge
to 0 on startup means all peers start a "not participation" which is incorrect since the node didn't have to participate yet, so it hasn't missed or failed participating.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2075 +/- ##
==========================================
- Coverage 53.34% 53.33% -0.02%
==========================================
Files 174 174
Lines 22604 22605 +1
==========================================
- Hits 12059 12056 -3
- Misses 9040 9042 +2
- Partials 1505 1507 +2
... and 4 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The new participationSuccess
counter needs to be added to simnet dashboard
Adds a `missed participation by peer` counter so that we can calculate `duty participation % per peer` and so we can highlight missed participations instead of only successful participations. category: misc ticket: #2034
Adds a
missed participation by peer
counter so that we can calculateduty participation % per peer
and so we can highlight missed participations instead of only successful participations.category: misc
ticket: #2034